package com.eigaland.change_machine.util

import android.app.ProgressDialog
import android.content.Context
import android.widget.ProgressBar
import com.eigaland.change_machine.R

public class ProgressDialogManager {
    companion object{
        var dialog : ProgressDialog? = null
        fun showDialog(context:Context){
           dialog = ProgressDialog.show(context, "", context.getString(R.string.progress_dialog_loading_message)
                ,false,true);

        }

        fun dismissDialog(context: Context){
            if(dialog != null  && dialog!!.isShowing){
                dialog!!.dismiss()
            }
        }
    }
}